<?php use_helper('I18N') ?>

<script type="text/javascript">
$(function() {
    $(".viewLink").button({
        icons: {
            primary: "ui-icon-image"
        }
    })
});
</script>

<div style="padding: 10px; top: 10px; width: 98%">
    <div class="portlet" id="sf_admin_container">
        <div class="portlet-header">Contact Us</div>
        <div class="portlet-content" id="sf_admin_content" style="width: 98%">
            <table class="sf_admin_list" width="100%">
                <thead>
                <tr>
                    <th>Contact</th>
                    <th>Full name</th>
                    <th>Email</th>
                    <th>Message</th>
                    <th>Status code</th>
                    <th>Created on</th>
                </tr>
                </thead>
                <tbody>
                <?php
                $className = "sf_admin_row_1";
                foreach ($cms_contact_uss as $cms_contact_us):
                    if ($className == "sf_admin_row_0") {
                        $className = "sf_admin_row_1";
                    } else {
                        $className = "sf_admin_row_0";
                    }
                    ?>
                <tr class="<?php echo $className?>">
                    <td><?php echo link_to("View", 'member/contactUsEdit?contact_id=' . $cms_contact_us->getContactId(), array ('class' => 'viewLink')) ?></td>
                    <td><?php echo $cms_contact_us->getFullName() ?></td>
                    <td><?php echo $cms_contact_us->getEmail() ?></td>
                    <td><?php echo $cms_contact_us->getMessage() ?></td>
                    <td><?php echo $cms_contact_us->getStatusCode() ?></td>
                    <td><?php echo $cms_contact_us->getCreatedOn() ?></td>
                </tr>
                    <?php endforeach; ?>
                </tbody>
            </table>

        </div>
    </div>
</div>